package com.sg.service.biz.app.nb;

import cn.hutool.core.bean.BeanUtil;
import com.sg.dto.biz.app.req.ImplementFourthReceivingFieldReqDto;
import com.sg.dto.biz.app.req.ImplementGainInParameterFieldsReqDto;
import com.sg.dto.biz.app.res.ImplementFourthReceivingFieldRespDto;
import com.sg.dto.biz.app.res.ImplementGainInParameterFieldsRespDto;
import org.apache.skywalking.apm.toolkit.trace.Tag;
import org.apache.skywalking.apm.toolkit.trace.Tags;
import org.apache.skywalking.apm.toolkit.trace.Trace;
import org.springframework.stereotype.Service;

/**
 * @author ： 手工接入方法
 * @version 1.0
 * @since 2022/5/28 15:32
 */
@Service
public class NbOfficialDocument {
    /**
     * code:receptionService
     * name:M3约定当前身份人员ID
     * desc:undefined
     * gen by moon at 11/13/2023, 4:59:22 PM
     **/
    @Trace(operationName = "M3约定当前身份人员ID")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    public ImplementGainInParameterFieldsRespDto implementGainInParameterFields(ImplementGainInParameterFieldsReqDto reqDto) {
        return BeanUtil.toBean(reqDto, ImplementGainInParameterFieldsRespDto.class);
    }

    /**
     * code:receptionService
     * name:M3约定下发公文语义引擎模板
     * desc:undefined
     * gen by moon at 12/15/2023, 2:41:56 PM
     **/
    @Trace(operationName = "M3约定下发公文语义引擎模板")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    public ImplementTypeCodeFieldsAcceptRespDto implementTypeCodeFieldsAccept(ImplementTypeCodeFieldsAcceptReqDto reqDto) {
        return BeanUtil.toBean(reqDto, ImplementTypeCodeFieldsAcceptRespDto.class);
    }

    /**
     * code:receptionService
     * name:M3约定公文通知行为类型
     * desc:undefined
     * gen by moon at 1/27/2024, 10:23:43 PM
     **/
    @Trace(operationName = "M3约定公文通知行为类型")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    public ImplementFourthReceivingFieldRespDto implementFourthReceivingField(ImplementFourthReceivingFieldReqDto reqDto) {
        return BeanUtil.toBean(reqDto, ImplementFourthReceivingFieldRespDto.class);
    }
    //手工接入方法
}
